<template>
   <div>

   </div>
</template>

<script>
    export default {
        name: "Nav.vue",
        props:["spt"],
        data(){
            return {
                a:null,
                onOff:true
            }
        },
        computed:{

        },
        methods:{
            getJsp(){
                this.$jsonp(`https://3g.163.com/touch/nc/api/user/recommend/GuessLike/1-${this.spt}-10-0.do`).then(popData=>{
                    if(popData){
                        //console.log(popData)
                        this.a=Object.assign(popData.list)
                        //console.log(this.a)
                        //console.log(this.spt)
                    }
                })
            }
        },
        created() {
            this.getJsp()
        },
    }
</script>

<style scoped>

</style>